cmake_minimum_required (VERSION 2.8)
project (gridmap)

find_package (OpenCV REQUIRED)

include_directories (${CMAKE_SOURCE_DIR})
link_directories (${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
link_directories (${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})

add_executable (test_${PROJECT_NAME} gridmap.cpp test.cpp gridmap.h)
target_link_libraries (test_${PROJECT_NAME} ${OpenCV_LIBS})
target_link_libraries (test_${PROJECT_NAME} cmvision)

add_executable (show_${PROJECT_NAME} gridmap.cpp showmap.cpp gridmap.h)
target_link_libraries (show_${PROJECT_NAME} ${OpenCV_LIBS})
target_link_libraries (show_${PROJECT_NAME} cmvision)

add_executable (show_camera show_camera.cpp gridmap.h gridmap.cpp)
target_link_libraries (show_camera ${OpenCV_LIBS})
target_link_libraries (show_camera cmvision)
